package dao

import (
	"time"
)

// 这是 submit_book表 的实体类
type SubmitBook struct {
	Id           int       `json:"id" form:"id" binding:"id"`
	Uid          int       `json:"uid" form:"uid" binding:"uid"`                // 用户ID
	Nickname     string    `json:"nickname" form:"nickname" binding:"nickname"` // 用户昵称
	Account      string    `json:"account" form:"account" binding:"account"`    // 用户账号
	Title        string    `json:"title" form:"title" binding:"title"`
	Url          string    `json:"url" form:"url" binding:"url"`
	UrlMd5       string    `json:"url_md5" form:"url_md5" binding:"url_md5"`
	Message      string    `json:"message" form:"message" binding:"message"`
	Status       int       `json:"status" form:"status" binding:"status"`
	CreatedAt    time.Time `json:"created_at" form:"created_at" binding:"created_at"`
	UpdatedAt    time.Time `json:"updated_at" form:"updated_at" binding:"updated_at"`
	CreatedAtStr string    `json:"created_at_str" form:"created_at_str" binding:"created_at_str"`
}

// 微信
// 这是 wechat表 的实体类
type Wechat struct {
	Id        int    `json:"id" form:"id" binding:"id"`
	MemberId  int    `json:"member_id" form:"member_id" binding:"member_id"` // 绑定的用户ID
	OpenId    string `json:"open_id" form:"open_id" binding:"open_id"`
	UnionId   string `json:"union_id" form:"union_id" binding:"union_id"`
	AvatarUrl string `json:"avatar_url" form:"avatar_url" binding:"avatar_url"`
	Nickname  string `json:"nickname" form:"nickname" binding:"nickname"`
	SessKey   string `json:"sess_key" form:"sess_key" binding:"sess_key"`
}

// 书籍与分类关联表
// 这是 book_category表 的实体类
type BookCategory struct {
	Id         int `json:"id" form:"id" binding:"id"`
	BookId     int `json:"book_id" form:"book_id" binding:"book_id"`             // 书籍Id
	CategoryId int `json:"category_id" form:"category_id" binding:"category_id"` // 分类Id

}

// 分类
// 这是 category表 的实体类
type Category struct {
	Id     int    `json:"id" form:"id" binding:"id"`
	Pid    int    `json:"pid" form:"pid" binding:"pid"`          // 分类id
	Title  string `json:"title" form:"title" binding:"title"`    // 分类名称
	Intro  string `json:"intro" form:"intro" binding:"intro"`    // 介绍
	Icon   string `json:"icon" form:"icon" binding:"icon"`       // 分类icon
	Cnt    int    `json:"cnt" form:"cnt" binding:"cnt"`          // 分类下的书籍统计
	Sort   int    `json:"sort" form:"sort" binding:"sort"`       // 排序
	Status int    `json:"status" form:"status" binding:"status"` // 分类状态，true表示显示，否则表示隐藏

}

// 日志表
// 这是 logs表 的实体类
type Logs struct {
	LogId        int       `json:"log_id" form:"log_id" binding:"log_id"`
	MemberId     int       `json:"member_id" form:"member_id" binding:"member_id"`
	Category     string    `json:"category" form:"category" binding:"category"` // 日志类别：operate 操作日志/ system 系统日志/ exception 异常日志 / document 文档操作日志
	Content      string    `json:"content" form:"content" binding:"content"`
	OriginalData string    `json:"original_data" form:"original_data" binding:"original_data"`
	PresentData  string    `json:"present_data" form:"present_data" binding:"present_data"`
	CreateTime   time.Time `json:"create_time" form:"create_time" binding:"create_time"`
	UserAgent    string    `json:"user_agent" form:"user_agent" binding:"user_agent"`
	IpAddress    string    `json:"ip_address" form:"ip_address" binding:"ip_address"`
}

// 迁移
// 这是 migration表 的实体类
type Migration struct {
	MigrationId int       `json:"migration_id" form:"migration_id" binding:"migration_id"`
	Name        string    `json:"name" form:"name" binding:"name"`
	Statement   string    `json:"statement" form:"statement" binding:"statement"`
	Status      int       `json:"status" form:"status" binding:"status"`
	CreateTime  time.Time `json:"create_time" form:"create_time" binding:"create_time"`
	Version     int       `json:"version" form:"version" binding:"version" gm:"version"`
}

// 导出离线文档队列
// 这是 queue表 的实体类
type Queue struct {
	Id     int `json:"id" form:"id" binding:"id"`
	BookId int `json:"book_id" form:"book_id" binding:"book_id"` // 书籍ID
	Status int `json:"status" form:"status" binding:"status"`    // 导出状态，0待导出，1导出中，2导出完成，3导出失败

}

// 这是 seo表 的实体类
type Seo struct {
	Id          int    `json:"id" form:"id" binding:"id"`
	Page        string `json:"page" form:"page" binding:"page"`                      // 页面
	Statement   string `json:"statement" form:"statement" binding:"statement"`       // 页面说明
	Title       string `json:"title" form:"title" binding:"title"`                   // SEO标题
	Keywords    string `json:"keywords" form:"keywords" binding:"keywords"`          // SEO关键字
	Description string `json:"Description" form:"Description" binding:"Description"` // SEO摘要

}

// 文档表
// 这是 document表 的实体类
type Document struct {
	DocumentId   int       `json:"document_id" form:"document_id" binding:"document_id"`
	DocumentName int       `json:"document_name" form:"document_name" binding:"document_name"`
	Identify     string    `json:"identify" form:"identify" binding:"identify"` // 文档唯一标识
	BookId       int       `json:"book_id" form:"book_id" binding:"book_id"`
	ParentId     int       `json:"parent_id" form:"parent_id" binding:"parent_id"`
	OrderSort    int       `json:"order_sort" form:"order_sort" binding:"order_sort"`
	Release      string    `json:"release" form:"release" binding:"release"` // Release 发布后的Html格式内容
	CreateTime   time.Time `json:"create_time" form:"create_time" binding:"create_time"`
	MemberId     int       `json:"member_id" form:"member_id" binding:"member_id"`
	ModifyTime   time.Time `json:"modify_time" form:"modify_time" binding:"modify_time"`
	ModifyAt     int       `json:"modify_at" form:"modify_at" binding:"modify_at"`
	Version      int       `json:"version" form:"version" binding:"version" gm:"version"`
	Vcnt         int       `json:"vcnt" form:"vcnt" binding:"vcnt"` // 书籍被浏览次数

}

// 文档存储，将大内容分发到专门的数据表里面
// 这是 document_store表 的实体类
type DocumentStore struct {
	DocumentId int       `json:"document_id" form:"document_id" binding:"document_id"` // 文档id，对应Document中的document_id
	Markdown   string    `json:"markdown" form:"markdown" binding:"markdown"`          // markdown内容
	Content    string    `json:"content" form:"content" binding:"content"`             // 文本内容
	UpdatedAt  time.Time `json:"updated_at" form:"updated_at" binding:"updated_at"`
}

// 下载计数
// 这是 download_counter表 的实体类
type DownloadCounter struct {
	Id    int `json:"id" form:"id" binding:"id"`
	Uid   int `json:"uid" form:"uid" binding:"uid"` // 用户ID
	Date  int `json:"date" form:"date" binding:"date"`
	Total int `json:"total" form:"total" binding:"total"`
}

// 粉丝表
// 这是 fans表 的实体类
type Fans struct {
	Id     int `json:"id" form:"id" binding:"id"`
	Uid    int `json:"uid" form:"uid" binding:"uid"`             // 被关注的用户id
	FansId int `json:"fans_id" form:"fans_id" binding:"fans_id"` // 粉丝id

}

// 阅读记录.用于记录阅读的文档，以及阅读进度统计
// 这是 read_record表 的实体类
type ReadRecord struct {
	Id       int       `json:"id" form:"id" binding:"id"`
	BookId   int       `json:"book_id" form:"book_id" binding:"book_id"`       // 书籍ID
	DocId    int       `json:"doc_id" form:"doc_id" binding:"doc_id"`          // 文档ID
	Uid      int       `json:"uid" form:"uid" binding:"uid"`                   // 用户ID
	CreateAt time.Time `json:"create_at" form:"create_at" binding:"create_at"` // 记录创建时间，也就是内容阅读时间

}

// 这是 relation_ship表 的实体类
type RelationShip struct {
	RelationshipId int `json:"relationship_id" form:"relationship_id" binding:"relationship_id"`
	MemberId       int `json:"member_id" form:"member_id" binding:"member_id"`
	BookId         int `json:"book_id" form:"book_id" binding:"book_id"`
	RoleId         int `json:"role_id" form:"role_id" binding:"role_id"` // 角色：0 创始人(创始人不能被移除) / 1 管理员/2 编辑者/3 观察者

}

// 广告表
// 这是 ads_cont表 的实体类
type AdsCont struct {
	Id        int       `json:"id" form:"id" binding:"id"`
	Pid       int       `json:"pid" form:"pid" binding:"pid"` // 父级广告
	Title     string    `json:"title" form:"title" binding:"title"`
	Code      string    `json:"code" form:"code" binding:"code"`
	Start     int       `json:"start" form:"start" binding:"start"`
	End       int       `json:"end" form:"end" binding:"end"`
	StartTime time.Time `json:"start_time" form:"start_time" binding:"start_time"`
	EndTime   time.Time `json:"end_time" form:"end_time" binding:"end_time"`
	Status    int       `json:"status" form:"status" binding:"status"`
}

// 友链数据表
// 这是 friend_link表 的实体类
type FriendLink struct {
	Id     int    `json:"id" form:"id" binding:"id"`
	Sort   int    `json:"sort" form:"sort" binding:"sort"`       // 排序
	Link   string `json:"link" form:"link" binding:"link"`       // 链接地址
	Title  string `json:"title" form:"title" binding:"title"`    // 链接名称
	Remark string `json:"remark" form:"remark" binding:"remark"` // 备注
	Status int    `json:"status" form:"status" binding:"status"` // 状态

}

// 这是 relate_book表 的实体类
type RelateBook struct {
	Id      int    `json:"id" form:"id" binding:"id"`
	BookId  int    `json:"book_id" form:"book_id" binding:"book_id"`
	BookIds string `json:"book_ids" form:"book_ids" binding:"book_ids"`
	Expire  int    `json:"expire" form:"expire" binding:"expire"`
}

// 这是 star表 的实体类
type Star struct {
	Id       int `json:"id" form:"id" binding:"id"`
	Uid      int `json:"uid" form:"uid" binding:"uid"`                   // 用户ID
	BookId   int `json:"book_id" form:"book_id" binding:"book_id"`       // 书籍ID
	LastRead int `json:"last_read" form:"last_read" binding:"last_read"` // 最后阅读时间

}

// 微信小程序码记录表
// 这是 wechat_code表 的实体类
type WechatCode struct {
	Id     int    `json:"id" form:"id" binding:"id"`
	BookId int    `json:"book_id" form:"book_id" binding:"book_id"`
	Path   string `json:"path" form:"path" binding:"path"`
}

// 文档历史表
// 这是 document_history表 的实体类
type DocumentHistory struct {
	HistoryId    int       `json:"history_id" form:"history_id" binding:"history_id"`
	Action       string    `json:"action" form:"action" binding:"action"`
	ActionName   string    `json:"action_name" form:"action_name" binding:"action_name"`
	DocumentId   int       `json:"document_id" form:"document_id" binding:"document_id"`
	DocumentName string    `json:"document_name" form:"document_name" binding:"document_name"`
	ParentId     int       `json:"parent_id" form:"parent_id" binding:"parent_id"`
	MemberId     int       `json:"member_id" form:"member_id" binding:"member_id"`
	ModifyTime   time.Time `json:"modify_time" form:"modify_time" binding:"modify_time"`
	ModifyAt     int       `json:"modify_at" form:"modify_at" binding:"modify_at"`
	Version      int       `json:"version" form:"version" binding:"version" gm:"version"`
}

// 标签表
// 这是 label表 的实体类
type Label struct {
	LabelId    int    `json:"label_id" form:"label_id" binding:"label_id"`
	LabelName  string `json:"label_name" form:"label_name" binding:"label_name"`
	BookNumber int    `json:"book_number" form:"book_number" binding:"book_number"`
}

// 成员token表
// 这是 member_token表 的实体类
type MemberToken struct {
	TokenId   int       `json:"token_id" form:"token_id" binding:"token_id"`
	MemberId  int       `json:"member_id" form:"member_id" binding:"member_id"`
	Token     string    `json:"token" form:"token" binding:"token"`
	Email     string    `json:"email" form:"email" binding:"email"`
	IsValid   int       `json:"is_valid" form:"is_valid" binding:"is_valid"`
	ValidTime time.Time `json:"valid_time" form:"valid_time" binding:"valid_time"`
	SendTime  time.Time `json:"send_time" form:"send_time" binding:"send_time"`
}

// 这是 qq表 的实体类
type Qq struct {
	Id        int    `json:"id" form:"id" binding:"id"`
	OpenId    string `json:"open_id" form:"open_id" binding:"open_id"`
	MemberId  int    `json:"member_id" form:"member_id" binding:"member_id"`
	Name      string `json:"name" form:"name" binding:"name"`                   // 昵称
	Gender    string `json:"gender" form:"gender" binding:"gender"`             // 性别
	AvatarUrl string `json:"avatar_url" form:"avatar_url" binding:"avatar_url"` // 用户头像链接

}

// 这是 regLimit表 的实体类
type RegLimit struct {
	Id          int       `json:"id" form:"id" binding:"id"`
	Ip          string    `json:"ip" form:"ip" binding:"ip"`
	DailyRegNum int       `json:"daily_reg_num" form:"daily_reg_num" binding:"daily_reg_num"`
	HourRegNum  int       `json:"hour_reg_num" form:"hour_reg_num" binding:"hour_reg_num"`
	RealIpField string    `json:"real_ip_field" form:"real_ip_field" binding:"real_ip_field"`
	CreatedAt   time.Time `json:"created_at" form:"created_at" binding:"created_at"`
}

// 爬虫表
// 这是 spider表 的实体类
type Spider struct {
	Id         int       `json:"id" form:"id" binding:"id"`
	BookId     int       `json:"book_id" form:"book_id" binding:"book_id"` // 归属于哪一本书
	Title      string    `json:"title" form:"title" binding:"title"`       // 文档标题
	Content    string    `json:"content" form:"content" binding:"content"` // 内容
	CreateTime time.Time `json:"create_time" form:"create_time" binding:"create_time"`
	UpdateTime time.Time `json:"update_time" form:"update_time" binding:"update_time"`
}

// 广告位
// 这是 ads_position表 的实体类
type AdsPosition struct {
	Id       int    `json:"id" form:"id" binding:"id"`
	Title    string `json:"title" form:"title" binding:"title"`             // 标题
	Identify string `json:"identify" form:"identify" binding:"identify"`    // 广告标识
	IsMobile int    `json:"is_mobile" form:"is_mobile" binding:"is_mobile"` // 是否是移动广告

}

// 用户权限关联表
// 这是 auth表 的实体类
type Auth struct {
	Id    int    `json:"id" form:"id" binding:"id"`
	Token string `json:"token" form:"token" binding:"token"` // 令牌
	Uid   int    `json:"uid" form:"uid" binding:"uid"`       // 用户ID

}

// 书籍计数表
// 这是 book_counter表 的实体类
type BookCounter struct {
	Id      int `json:"id" form:"id" binding:"id"`
	Bid     int `json:"bid" form:"bid" binding:"bid"` // 书籍Id
	Day     int `json:"day" form:"day" binding:"day"`
	StarCnt int `json:"star_cnt" form:"star_cnt" binding:"star_cnt"` // 收藏数
	ViewCnt int `json:"view_cnt" form:"view_cnt" binding:"view_cnt"` // 浏览数

}

// 书签
// 这是 book_mark表 的实体类
type BookMark struct {
	Id       int       `json:"id" form:"id" binding:"id"`
	BookId   int       `json:"book_id" form:"book_id" binding:"book_id"`       // 书籍id，主要是为了方便根据书籍id查询书签
	Uid      int       `json:"uid" form:"uid" binding:"uid"`                   // 用户id
	DocIc    int       `json:"doc_ic" form:"doc_ic" binding:"doc_ic"`          // 文档id
	CreateAt time.Time `json:"create_at" form:"create_at" binding:"create_at"` // 创建时间

}

// 评论表
// 这是 comment表 的实体类
type Comment struct {
	Id         int       `json:"id" form:"id" binding:"id"`
	Uid        int       `json:"uid" form:"uid" binding:"uid"`                         // 用户id
	BookId     int       `json:"book_id" form:"book_id" binding:"book_id"`             // 书籍id
	Content    string    `json:"content" form:"content" binding:"content"`             // 评论内容
	CreateTime time.Time `json:"create_time" form:"create_time" binding:"create_time"` // 评论时间
	Status     int       `json:"status" form:"status" binding:"status"`                // 审核状态:0,待审核,1 通过,-1 不通过

}

// 这是 option表 的实体类
type Option struct {
	OptionId    int    `json:"option_id" form:"option_id" binding:"option_id"`
	OptionTitle string `json:"option_title" form:"option_title" binding:"option_title"`
	OptionName  string `json:"option_name" form:"option_name" binding:"option_name"`
	OptionValue string `json:"option_value" form:"option_value" binding:"option_value"`
	Remark      string `json:"remark" form:"remark" binding:"remark"`
}

// 书籍表
// 这是 book表 的实体类
type Book struct {
	BookId            int       `json:"book_id" form:"book_id" binding:"book_id"`
	BookName          string    `json:"book_name" form:"book_name" binding:"book_name"` // 书籍名称
	Identify          string    `json:"identify" form:"identify" binding:"identify"`    // 书籍唯一标识
	OrderIndex        int       `json:"order_index" form:"order_index" binding:"order_index"`
	Pin               int       `json:"pin" form:"pin" binding:"pin"`                                     // pin值，用于首页固定显示
	Description       string    `json:"description" form:"description" binding:"description"`             // 书籍描述
	Label             string    `json:"label" form:"label" binding:"label"`                               // 标签
	PrivatelyOwned    int       `json:"privately_owned" form:"privately_owned" binding:"privately_owned"` // 书籍私有:0 公开1 私有
	PrivateToken      string    `json:"private_token" form:"private_token" binding:"private_token"`       // 当书籍是私有时的访问Token
	Status            int       `json:"status" form:"status" binding:"status"`                            // 状态:0 正常已删除
	Editor            string    `json:"editor" form:"editor" binding:"editor"`                            // 默认的编辑器
	DocCount          int       `json:"doc_count" form:"doc_count" binding:"doc_count"`                   // 文档数量
	CommentStatus     string    `json:"comment_status" form:"comment_status" binding:"comment_status"`    // 评论设置的状态:open 为允许所有人评论，closed 为不允许评论, group_only 仅允许参与者评论 ,registered_only 仅允许注册者评论
	CommentCount      int       `json:"comment_count" form:"comment_count" binding:"comment_count"`       // 评论数量
	Cover             string    `json:"cover" form:"cover" binding:"cover"`                               // 封面地址
	Theme             string    `json:"theme" form:"theme" binding:"theme"`                               // 主题风格
	CreateTime        time.Time `json:"create_time" form:"create_time" binding:"create_time"`             // 创建时间
	MemberId          int       `json:"member_id" form:"member_id" binding:"member_id"`
	ModifyTime        time.Time `json:"modify_time" form:"modify_time" binding:"modify_time"`                         // 编辑时间
	ReleaseTime       time.Time `json:"release_time" form:"release_time" binding:"release_time"`                      // 书籍发布时间，每次发布都更新一次，如果文档更新时间小于发布时间，则文档不再执行发布
	GenerateTime      time.Time `json:"generate_time" form:"generate_time" binding:"generate_time"`                   // 下载文档生成时间
	LastClickGenerate time.Time `json:"last_click_generate" form:"last_click_generate" binding:"last_click_generate"` // 上次点击上传文档的时间，用于显示频繁点击浪费服务器硬件资源的情况
	Version           int       `json:"version" form:"version" binding:"version" gm:"version"`
	Vcnt              int       `json:"vcnt" form:"vcnt" binding:"vcnt"`                      // 书籍被阅读次数
	Star              int       `json:"star" form:"star" binding:"star"`                      // 书籍被收藏次数
	Score             int       `json:"score" form:"score" binding:"score"`                   // 书籍评分，默认40，即4.0星
	CntScore          int       `json:"cnt_score" form:"cnt_score" binding:"cnt_score"`       // 评分人数
	CntComment        int       `json:"cnt_comment" form:"cnt_comment" binding:"cnt_comment"` // 评论人数
	Author            string    `json:"author" form:"author" binding:"author"`                // 原作者，即来源
	AuthorUrl         string    `json:"author_url" form:"author_url" binding:"author_url"`    // 原作者链接，即来源链接
	AdTitle           string    `json:"ad_title" form:"ad_title" binding:"ad_title"`          // 文字广告标题
	AdLink            string    `json:"ad_link" form:"ad_link" binding:"ad_link"`             // 文字广告链接
	Lang              string    `json:"lang" form:"lang" binding:"lang"`                      // 语言

}

// 这是 print_book表 的实体类
type PrintBook struct {
	Id            int    `json:"id" form:"id" binding:"id"`
	Cover         string `json:"cover" form:"cover" binding:"cover"`
	Title         string `json:"title" form:"title" binding:"title"`
	Keywords      string `json:"keywords" form:"keywords" binding:"keywords"`
	Description   string `json:"description" form:"description" binding:"description"`
	Author        string `json:"author" form:"author" binding:"author"`
	Publish       string `json:"publish" form:"publish" binding:"publish"` // 出版社
	Lang          string `json:"lang" form:"lang" binding:"lang"`          // 语种
	Page          int    `json:"page" form:"page" binding:"page"`          // 页数
	View          int    `json:"view" form:"view" binding:"view"`
	Support       int    `json:"support" form:"support" binding:"support"`
	ShopLinksJson string `json:"shop_links_json" form:"shop_links_json" binding:"shop_links_json"`
	Content       string `json:"content" form:"content" binding:"content"`
}

// 成员表
// 这是 member表 的实体类
type Member struct {
	MemberId                 int       `json:"member_id" form:"member_id" binding:"member_id"`
	Account                  string    `json:"account" form:"account" binding:"account"`
	Nickname                 string    `json:"nickname" form:"nickname" binding:"nickname"` // 昵称
	Password                 string    `json:"password" form:"password" binding:"password"`
	AuthMethod               string    `json:"auth_method" form:"auth_method" binding:"auth_method"` // 认证方式: local 本地数据库 /ldap LDAP
	Description              string    `json:"description" form:"description" binding:"description"`
	Email                    string    `json:"email" form:"email" binding:"email"`
	Phone                    string    `json:"phone" form:"phone" binding:"phone"`
	Avatar                   string    `json:"avatar" form:"avatar" binding:"avatar"`
	Role                     int       `json:"role" form:"role" binding:"role"`       // 用户角色：0 超级管理员 /1 管理员/ 2 普通用户
	Status                   int       `json:"status" form:"status" binding:"status"` // 用户状态：0 正常/1 禁用
	CreateTime               time.Time `json:"create_time" form:"create_time" binding:"create_time"`
	CreateAt                 int       `json:"create_at" form:"create_at" binding:"create_at"`
	LastLoginTime            time.Time `json:"last_login_time" form:"last_login_time" binding:"last_login_time"`
	TotalReadingTime         int       `json:"total_reading_time" form:"total_reading_time" binding:"total_reading_time"`                            // 总阅读时长
	TotalSign                int       `json:"total_sign" form:"total_sign" binding:"total_sign"`                                                    // 总签到天数
	TotalContinueSign        int       `json:"total_continue_sign" form:"total_continue_sign" binding:"total_continue_sign"`                         // 总连续签到天数
	HistoryTotalContinueSign int       `json:"history_total_continue_sign" form:"history_total_continue_sign" binding:"history_total_continue_sign"` // 历史最高连续签到天数
	WechatNo                 string    `json:"wechat_no" form:"wechat_no" binding:"wechat_no"`                                                       // 微信号
	NoRank                   int       `json:"no_rank" form:"no_rank" binding:"no_rank"`                                                             // 是否禁止榜单排行
	RoleName                 string    `json:"role_name" form:"role_name" binding:"role_name"`
}

// 评分表
// 这是 score表 的实体类
type Score struct {
	Id         int       `json:"id" form:"id" binding:"id"`
	BookId     int       `json:"book_id" form:"book_id" binding:"book_id"`
	Uid        int       `json:"uid" form:"uid" binding:"uid"`       // 用户ID
	Score      int       `json:"score" form:"score" binding:"score"` // 评分
	CreateTime time.Time `json:"create_time" form:"create_time" binding:"create_time"`
}

// 会员签到表
// 这是 sign表 的实体类
type Sign struct {
	Id        int       `json:"id" form:"id" binding:"id"`
	Uid       int       `json:"uid" form:"uid" binding:"uid"`          // 签到的用户ID
	Day       int       `json:"day" form:"day" binding:"day"`          // 签到日期
	Reward    int       `json:"reward" form:"reward" binding:"reward"` // 奖励的阅读秒数
	FromApp   int       `json:"from_app" form:"from_app" binding:"from_app"`
	CreatedAt time.Time `json:"created_at" form:"created_at" binding:"created_at"`
}

// 阅读时长
// 这是 reading_time表 的实体类
type ReadingTime struct {
	Id       int `json:"id" form:"id" binding:"id"`
	Uid      int `json:"uid" form:"uid" binding:"uid"`
	Day      int `json:"day" form:"day" binding:"day"`                // 日期:(如 20191212)
	Duration int `json:"Duration" form:"Duration" binding:"Duration"` // 每天的阅读时长
}
